package lanou.a36ke_01.activity.equityactivity;

import android.content.Intent;
import android.util.Log;
import android.webkit.WebSettings;
import android.webkit.WebView;
import android.webkit.WebViewClient;

import lanou.a36ke_01.R;
import lanou.a36ke_01.tools.BaseActivity;


public class EquityDetailsActivity extends BaseActivity {

    private String url = "https://z.36kr.com/project/";


    private WebView webView;
    private String urlAdd;

    @Override
    protected int setLayout() {
        return R.layout.activity_equity_detail;
    }

    @Override
    protected void initView() {
        webView = bindView(R.id.activity_equity_detail_webview);

    }

    @Override
    protected void initDate() {

        Intent intent = getIntent();
        urlAdd = intent.getStringExtra("ID");
        Log.d("EquityDetailsActivity", urlAdd);
        webView.setWebViewClient(new WebViewClient());
        WebSettings webSettings = webView.getSettings();
        webSettings.setJavaScriptEnabled(true);
        webView.loadUrl(url + urlAdd);
    }
}
